import fetch from '@/utils/fetch';

export const createShareCard = (data) => {
  return fetch({
    url: '/web-admin/shareCard/createShareCard',
    method: 'POST',
    data,
  });
};

export const editeShareCard = (data) => {
  return fetch({
    url: '/web-admin/shareCard/editeShareCard',
    method: 'POST',
    data,
  });
};

export const listShareCard = (data) => {
  return fetch({
    url: '/web-admin/shareCard/listShareCard',
    method: 'POST',
    data,
  });
};

export const getShareCard = (data) => {
  return fetch({
    url: '/web-admin/shareCard/getShareCard',
    method: 'POST',
    data,
  });
};

export const setShareCardStatus = (data) => {
  return fetch({
    url: '/web-admin/shareCard/setShareCardStatus',
    method: 'POST',
    data,
  });
};

export const setShareCardWeight = (data) => {
  return fetch({
    url: '/web-admin/shareCard/setShareCardWeight',
    method: 'POST',
    data,
  });
};

export const delShareCard = (data) => {
  return fetch({
    url: '/web-admin/shareCard/delShareCard',
    method: 'POST',
    data,
  });
};
